// 分包结算
import request from '@/utils/request'
import {commercialApiUrl} from '../config'

/**
 *获取分包分供结算列表数据------------------------分包分供结算-------------------------------------------
 * @param data
 */
export function getTwoSettlementList(data) {
    return request({
      url: commercialApiUrl + '/subsupply/settlement/list',
      method: 'post',
      data
    })
  }
   /**
 *统计
 * @param data
 */
 export function getTwoSettlementCount(data) {
    return request({
      url: commercialApiUrl + '/subsupply/settlement/count',
      method: 'post',
      data
    })
  }
    /**
 *获取列表数据
 *
 */
 export function getTwoSettlementOne(data) {
    return request({
      url: `${commercialApiUrl}/subsupply/settlement/query/${data.id}`,
      method: 'get',
    })
  }
    /**
 *保存数据
 * @param data
 */
 export function saveTwoSettlementList(data) {
    return request({
      url: commercialApiUrl + '/subsupply/settlement/save',
      method: 'post',
      data
    })
  }
  /**
 *获取分包分供列表数据------------------------分包分供实际效益-------------------------------------------
 * @param data
 */
 export function getTwoBenefitAnalysisList(data) {
    return request({
      url: commercialApiUrl + '/subsupply/actual/benefit/list',
      method: 'post',
      data
    })
  }
     /**
 *统计
 * @param data
 */
 export function getTwoBenefitAnalysisCount(data) {
    return request({
      url: commercialApiUrl + '/subsupply/actual/benefit/count',
      method: 'post',
      data
    })
  }
      /**
 *获取回显列表数据
 *
 */
 export function getTwoBenefitAnalysisOne(data) {
    return request({
      url: `${commercialApiUrl}/subsupply/actual/benefit/query/${data.id}`,
      method: 'get',
    })
  }
      /**
 *保存数据
 * @param data
 */
 export function saveTwoBenefitAnalysisList(data) {
    return request({
      url: commercialApiUrl + '/subsupply/actual/benefit/save',
      method: 'post',
      data
    })
  }